package com.chixing.day04_oop.computer;

public class MainBoard {
    private Cpu cpu;
    private VideoCard videoCard;

    public MainBoard() {
    }

    public MainBoard(Cpu cpu, VideoCard videoCard) {
        this.cpu=cpu;
        this.videoCard=videoCard;
    }

    public Cpu getCpu() {
        return cpu;
    }

    public void setCpu(Cpu cpu) {
        this.cpu = cpu;
    }

    public VideoCard getVideoCard() {
        return videoCard;
    }

    public void setVideoCard(VideoCard videoCard) {
        this.videoCard = videoCard;
    }

    @Override
    public String toString() {
        return "MainBoard{" +
                "cpu=" + cpu +
                ", videoCard=" + videoCard +
                '}';
    }
}
